import request from '@/utils/request'
// import { transformQueryCondition } from '@/utils'
// import qs from 'qs'
// import qs from 'qs'
// 稿件保存
export function saveTextArtist(query) {
  // const searchCon = transformQueryCondition(query)
  return request({
    url: 'zcm/zcm/ysj/saveTextArtist',
    method: 'POST',
    data: query
  })
}

// 稿件发布
export function publicTextArtist(query) {
  // const searchCon = transformQueryCondition(query)
  return request({
    url: 'zcm/zcm/ysj/publicTextArtist',
    method: 'POST',
    data: query
  })
}
// 草稿箱id查询
export function getArtistDraftById(query) {
  // const searchCon = transformQueryCondition(query)
  return request({
    url: 'zcm/zcm/ysj/getArtistDraftById/' + query.id,
    method: 'Get',
    data: query
  })
}
// 草稿撤回
export function backPublicedArtist(query) {
  // const searchCon = transformQueryCondition(query)
  return request({
    url: 'zcm/zcm/ysj/backPublicedArtist/' + query.articleId + '/' + query.userId,
    method: 'Get',
    data: query
  })
}
